#include "Soc_test.h"
int Fibon1(int n);
int main()
{
	int n = 10;
	int ret = 0;
	ret = Fibon1(n);
    asm("move $t7,%0 \n\t"
        :
        :"r"(ret));
    if (ret == 55)
    {
        asm(GOOD_TRAP);
    }
    else{
        asm(BAD_TRAP);
    }
    return 0;
}

int Fibon1(int n)
{
    asm(LOG_TRAP);
    if (n == 1 || n == 2)
    {
		return 1;
	}
	else
	{
		return Fibon1(n - 1) + Fibon1(n - 2);
	}
}